# -*- coding : utf-8 -*-
# coding: utf-8
"""
应用程序Api的路由和资源绑定
"""

from flask import Blueprint
from flask_restful import Api

from Src.upload import FileUpload
from Src.init import FileList
from Src.getflie import FileContent
from Src.zhipuai import ChatAPI
from Src.saveqa import SAVEFILE
# from Src.cglm3 import Chatglm3

api_bp = Blueprint('api', __name__)
api = Api(api_bp)

api.add_resource(FileUpload, '/chat/upload')
api.add_resource(FileList, '/chat/filelist')
api.add_resource(FileContent, '/chat/filecontent')
api.add_resource(ChatAPI, '/chat/zhipuai')
api.add_resource(SAVEFILE, '/chat/savefile')
# api.add_resource(Chatglm3, '/chat/cglm3')